/*************
//Function: afford form menu frame collapse and open function.
*/
var FORM_VIEW="open";  //开放状态

/*************
//Function: 打开窗口
*/
function formOpen()
{
   FORM_VIEW="close";
   formOpenSwitch();
}

/*************
//Function: 收缩窗口
*/
function formClose()
{
   parent.menuwin.cols="1,*";
   FORM_VIEW="close";
}


/*************
//Function: 窗口比例切换
*/
function formOpenSwitch()
{
	if(FORM_VIEW=="close" )  //在浏览表单
	{
		parent.menuwin.cols="120,*";
		FORM_VIEW="open";
		// frmList.imgCollapse.src="../../Images/button_collapse.gif";
	}
	else
	{
		parent.menuwin.cols="20,*";
		FORM_VIEW="close";
		// frmList.imgCollapse.src="../../Images/button_close.gif";
	}
}

function setPointer(theRow, thePointerColor)
{
    if (typeof(theRow.style) == 'undefined' || typeof(theRow.cells) == 'undefined')
    {
        return false;
    }
	theRow.bgColor=thePointerColor;
    //var row_cells_cnt=theRow.cells.length;
    //for (var c = 0; c < row_cells_cnt; c++)
    //{
    //    theRow.cells[c].bgColor = thePointerColor;
   // }

    return true;
}
